void function() {
    try {
        var $ = function(a, b) {
            b = b || document;
            return b.getElementsByClassName(a);
        };
        var _ = function(u) {
            return 'iku://|video|'+u+'|||||||';
        };

        var resultEl = $('showResult')[0];
        var queue = [];
        var recycle = [];
        var timer = null;
        if ($('btn_playall', resultEl).length) {
            //
        }
        else {
            var list = $('item', resultEl);
            var link = null;
            for (var i = 0, l = list.length; i < l; i++) {
                link = list[i].getElementsByTagName('a')[0];
                link && queue.push(_(link.href));
            }
        }

        var do_recycle = function() {
            window.clearInterval(timer);
            for (var i = 0, l = recycle.length; i < l; i++) {
                ;
            }
        };

        timer = window.setInterval(function() {
            var r = queue.shift();
            if (!r) {
                window.clearInterval(timer);
            }

            recycle[recycle.length] = window.open(r);
        }, 2000);
    } catch (ex) {}
}();